package com.traceability.trace.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.traceability.common.annotation.Excel;
import com.traceability.common.core.domain.BaseEntity;

/**
 * 检测信息管理对象 qualityinspection
 * 
 * @author xulin
 * @date 2025-01-09
 */
public class Qualityinspection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long inspectionId;

    /** 农产品 */
    @Excel(name = "农产品")
    private Long productId;

    /** 检测日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inspectionDate;

    /** 检测类型 */
    @Excel(name = "检测类型")
    private String inspectionType;

    /** 检测结果 */
    @Excel(name = "检测结果")
    private String inspectionResult;

    /** 检测机构名称 */
    @Excel(name = "检测机构名称")
    private String testingAgency;

    public void setInspectionId(Long inspectionId) 
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId() 
    {
        return inspectionId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setInspectionDate(Date inspectionDate) 
    {
        this.inspectionDate = inspectionDate;
    }

    public Date getInspectionDate() 
    {
        return inspectionDate;
    }
    public void setInspectionType(String inspectionType) 
    {
        this.inspectionType = inspectionType;
    }

    public String getInspectionType() 
    {
        return inspectionType;
    }
    public void setInspectionResult(String inspectionResult) 
    {
        this.inspectionResult = inspectionResult;
    }

    public String getInspectionResult() 
    {
        return inspectionResult;
    }
    public void setTestingAgency(String testingAgency) 
    {
        this.testingAgency = testingAgency;
    }

    public String getTestingAgency() 
    {
        return testingAgency;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inspectionId", getInspectionId())
            .append("productId", getProductId())
            .append("inspectionDate", getInspectionDate())
            .append("inspectionType", getInspectionType())
            .append("inspectionResult", getInspectionResult())
            .append("testingAgency", getTestingAgency())
            .toString();
    }
}
